package com.sbj.dto.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sbj.dto.jackson.CustomDecimalSerialize;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author summer
 * @version 1.0
 * @date 2024/9/14 11:31
 */
@Data
public class OrderItemRes implements Serializable {

    private String orderNo;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime payTime;

    @JsonSerialize(using = CustomDecimalSerialize.class)
    private BigDecimal totalPrice;

    private String orderStatusName;

    private String name;

    private String address;

    private String phone;

    private Integer orderId;

    private Integer orderStatus;

    private List<ShopItemRes> itemRes;

}
